package com.wl.employee.service;

import com.wl.employee.dao.EmployeeDao;
import com.wl.employee.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

@Service
public class HrxjTestServiceImpl extends BaseManagerImpl implements IHrxjTestService {

	@Autowired
	private EmployeeDao employeeDao;
	
	@Transactional
	public void test1(Employee employee) {
		employee.setEno("3444444444444444444444444");
		employee.setCreateDate(new Date());
		this.employeeDao.save(employee);
	}
	
	@Transactional
	public void test2(Employee employee) {
		employee.setEno("555555555555555");
		employee.setCreateDate(new Date());
		this.employeeDao.save(employee);
	}
	
}